<template>
	<view>
		<view class="apply-info">
			<view class="apply-top">
				<view class="apply-avatar">
					<image src="../../static/images/avatar.png" mode=""></image>
				</view>
				<view class="apply-name">医标通</view>
			</view>
			<view class="apply-zk">
				申请转科
			</view>
		</view>
		<view class="apply-content">
			<view class="apply-cells">
				<view class="apply-cell">
					<view class="apply-cell__hd">
						姓名
					</view>
					<view class="apply-cell__bd">
						林生斌
					</view>
				</view>
				<view class="apply-cell">
					<view class="apply-cell__hd">
						床位
					</view>
					<view class="apply-cell__bd">
						+3
					</view>
				</view>
				<view class="apply-cell">
					<view class="apply-cell__hd">
						性别
					</view>
					<view class="apply-cell__bd">
						保密
					</view>
				</view>
				<view class="apply-cell">
					<view class="apply-cell__hd">
						科室
					</view>
					<view class="apply-cell__bd">
						<u-select v-model="show" :list="list" @confirm="confirm"></u-select>
						<input type="text" v-model="value" placeholder="请选择科室" @click="show = true" />
					</view>
				</view>
				<view class="apply-cell">
					<view class="apply-cell__hd">
						入院时间
					</view>
					<view class="apply-cell__bd">
						2021-05-06 12:30:36
					</view>
				</view>
			</view>
		</view>
	    <view class="apply-foot">
			<button type="default" class="btn confirm-btn">确定</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: '',
				show: false,
				list: [{
						value: '1',
						label: '内科'
					},
					{
						value: '2',
						label: '外科'
					},
					{
						value: '3',
						label: '骨科'
					}
				],
			}
		},
		onLoad() {

		},
		methods: {
			confirm(e) {
				console.log(e);
				this.value = e[0].label
			}
		}
	}
</script>

<style lang="scss" scoped>
	.apply-info {
		background: url(../../static/images/apply-bg.png) no-repeat right top #fff;
		background-size: 455rpx 228rpx;
		padding: 16rpx 30rpx 30rpx;
	}

	.apply-top {
		display: flex;
		align-items: center;
		margin-bottom: 26rpx;
	}

	.apply-avatar {
		width: 126rpx;
		height: 126rpx;
		border-radius: 100%;
		border: 6rpx solid #fff;
		margin-right: 22rpx;
		box-shadow: 0 20rpx 36rpx rgba(0, 159, 232, 0.36);
	}

	.apply-avatar image {
		width: 100%;
		height: 100%;
	}

	.apply-name {
		font-size: 36rpx;
		color: #009fe8;
	}

	.apply-zk {
		font-size: 43rpx;
		color: #373b4f;
		line-height: 50rpx;
	}

	.apply-content {
		padding: 20rpx 30rpx;
	}

	.apply-cells {
		background-color: #fff;
		border-radius: 12rpx;
		overflow: hidden;
		padding: 0 30rpx;

		.apply-cell {
			display: flex;
			align-items: center;
			justify-content: space-between;
			color: #373b4f;
			padding: 30rpx 0;
			line-height: 40rpx;
			position: relative;
			border-bottom: 1rpx solid #eee;
			
			.apply-cell__hd{
				font-size: 30rpx;
			}
			.apply-cell__bd{
				font-size: 28rpx;
			}
			
			uni-input{
				height: 40rpx;
				font-size: 28rpx;
				width: 190rpx;
				background: url(../../static/images/down.png) no-repeat right center;
				background-size: 20rpx 12rpx;
			}
			
		}
		
		.apply-cell:last-child{
			border-bottom: 0;
		}
	}
	
	.apply-foot{
		position: fixed;
		z-index: 111;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 30rpx;
		
		.btn{
			height: 96rpx;
			border-radius: 16rpx;
			color: #fff;
			font-size: 36rpx;
		}
		
		
		.confirm-btn{
			background-color: #00a4e8;
		}
		
		.confirm-btn::after{
			display: none;
		}
	}
</style>
